
class Class{
    constructor(_number){
        this.number = _number ;
    }
    getDisplayName(){
        return `Class ${this.number}` ;
    }
    assignLeader(_student){
        //该学生是否为本班的
        if(_student.klass.number === this.number){
            this.leader = _student ;
        }else{
            console.log(`It is not one of us.`);
        }
        return 0 ;
    }
}
module.exports = Class ;